const getters = {
  opened: state => {
    if (state.app.opened === 'false') {
      return false
    } else if (state.app.opened === 'true') {
      return true
    }
  },
  imgSendAlertShow: state => {
    return state.imgSend.imgSendAlertShow
  },
  imgSendAlertBtnShow: state => {
    return state.imgSend.imgSendAlertBtnShow
  },
  completeCount: state => {
    return state.imgSend.completeCount
  },
  totalCount: state => {
    return state.imgSend.totalCount
  },
  exchagneAlertShow: state => {
    return state.imgExchange.exchagneAlertShow
  },
  exchangeCompleteCount: state => {
    return state.imgExchange.exchangeCompleteCount
  },
  exchangeTotalCount: state => {
    return state.imgExchange.exchangeTotalCount
  },
  exchangeState: state => {
    return state.imgExchange.exchangeState
  },
  group: state => {
    // return 'tenancy'
    return state.permission.group
  },
  permissions: state => {
    return state.permission.permissions
  },
  permissionsMapping: state => {
    return state.permission.permissionsMapping
  },
  systemid: state => {
    return state.permission.systemid
  },
  scope: state => {
    return state.permission.scope
  },
  firstEnter: state => {
    return state.permission.firstEnter
  },
  deptInstitutionId: state => {
    return state.permission.deptInstitutionId
  },
  closeLoading: state => {
    return state.imgSplit.closeLoading
  },
  loginInfo: state => {
    return state.user.loginInfo
  },
  imgShare:state=>{
    return state.app.imgShare
  }
}
export default getters
